package com.eim.taskgateway.controller;

import com.eim.user.utils.api.ApiResponse;
import com.eim.user.utils.api.ApiResponseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class FallbackController {

    @GetMapping("/defaultfallback")
    public ApiResponse defaultfallback() {
        System.out.println("请求被熔断.");
        return ApiResponseUtil.getApiResponse(404,"服务异常");
    }
}
